#include <iostream>
using namespace std;
////int main()
////{
////	cout << "hello world" << endl;
////	return 0;
////}
////int main()
////{
////	cout << "hello world" << endl << "hehe";
////	return 0;
////}
//#include <iostream>
//using namespace std;
//int main()
//{
//    cout << "     **      " << endl;
//    cout << "     **      " << endl;
//    cout << "*************" << endl;
//    cout << "*************" << endl;
//    cout << "    *  *     " << endl;
//    cout << "    *  *     " << endl;
//    return 0;
//}
//#include <iostream>
//using namespace std;
//int main()
//{
//    char a;
//    cin >> a;
//    cout << " " << " " << a << " " << " " << endl;
//    cout << " " << a << a << a << " " << endl;
//    cout << a << a << a << a << a << endl;
//
//    return 0;
//}

//#include <iostream>
//using namespace std;
//int main()
//{
//
//    float a = 3.14f;
//	cout << a << endl;
//	return 0;
//}

//#include <iostream>
//using namespace std;
//int main()
//{
//    int num = 1;
//    cin >> num;
//    cout << num << endl;
//    return 0;
//}
//#include <iostream>
//using namespace std;
//int main()
//{
//    char num;
//    cin >> num;
//    cout << num << endl;
//
//    return 0;
//}
//
//
//#include <iostream>
//using namespace std;
//int main()
//{
//    int n1,n2,n3;
//    cin >> n1 >> n2 >> n3;
//    cout << " " << n3 << " " << n2 << " " << n1 << endl;
//    return 0;
//}
//#include <iostream>
//using namespace std; 
//int main()
//{
//	int a;
//	short b;
//	cout << sizeof a << " " << sizeof b << endl;
//	return 0;
//}

//#include <iostream>
//using namespace std;
//int main()
//{
//    int sh = 35;
//    int sf = 94;
//    int foot = 4 * sh - sf;
//    int th = foot / 2;
//    int jh = sh - th;
//    cout << foot << endl;
//    cout << th << " " << jh << endl;
//    return 0;
//}
//#include <iostream>
//using namespace std;
//int main()
//{
//    int sh = 35;
//    int sf = 94;
//    int foot = 4 * sh - sf;
//    int th = foot / 2;
//    int jh = sh - th;
//    cout << th << " " << jh << endl;
//    return 0;
//}

#include <iostream>
using namespace std;
int main()
{
    int sh = 35;
    int sf = 94;
    int foot = 4 * sh - sf;
    int jh = foot / 2;
    int th = sh - th;
    cout << th << " " << jh << endl;
    return 0;
}
























